package com.pactera.madp.cp.controller.sidebar.product;

import com.pactera.madp.common.core.util.R;
import com.pactera.madp.cp.service.ProductGroupService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 产品分类
 *
 * @author kedongZhang
 * @date 2021/5/26 10:42
 */
@RestController
@AllArgsConstructor
@RequestMapping("/productgroupwechat")
@Api(value = "productgroupwechat", tags = "侧边栏产品分类管理")
public class SidebarProductGroupController {

    private ProductGroupService productGroupService;

    /**
     * 获取分类列表
     *
     * @return List<ProductGroupVO>
     */
    @GetMapping("/list")
    @ApiOperation(value = "获取分类列表")
    public R getGroupList(String wxUserId){
        System.out.println("DMSDMS------>SIDER");
        return productGroupService.getSidebarGroupList(wxUserId);
    }

}
